PDF4Java Reference Documentation
com.o2sol.pdf4java.core Package / PDFFile Class / isPDFFileUserPassword Method
Stream that contains the PDF file.
Password to verify.
In This Topic
    isPDFFileUserPassword Method
    In This Topic
    Verifies if the password matches the user password set on the PDF file.
    Syntax
    public static boolean isPDFFileUserPassword( 
       Stream stream,
       java.lang.String password
    )

    Parameters

    stream
    Stream that contains the PDF file.
    password
    Password to verify.

    Return Value

    True if the password is the user password, false if the password is not the user password or the file is not encrypted.
    See Also